<?php

/* 
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 * 
 * INSERT INTO  `bbs`.`t_message` (
`id` ,
`username` ,
`sex` ,
`content` ,
`avater` ,
`time_at`
)
VALUES (
NULL ,  'gbgfng',  'gf',  'gnfnsnjshf',  'sfnhyd',  ''
);


 */


require_once './db_conn.php';
$conn;
$imgurl = $_POST['imgurl'];
$title = $_POST['title'];
$txt = $_POST['txt'];
$linkurl = $_POST['linkurl'];

$sql = "

	INSERT INTO  `db_sente`.`tb_new` (
	`id` ,
	`url` ,
	`Imgurl` ,
        `Img` ,
	`isshow` ,
	`txt` ,
	`title` 
	)
	VALUES (
	NULL ,  '$linkurl',   'img/linian_xia04.png', '$imgurl',  '1',  '$txt',  '$title'
	);


  ";
$result = $conn->query($sql);
header("location:info.php");


